#!/usr/bin/env python

# encoding: utf-8

'''
 * Create File my_log
 * Created by leixu on 2017/10/16
 * IDE PyCharm
'''
import logging
import logstash
import sys
import my_config

my_logger = logging.getLogger(my_config.SPIDER_NAME)
my_logger.setLevel(logging.INFO)
my_logger.addHandler(logstash.TCPLogstashHandler(my_config.LOGGER_SERVER, my_config.LOGGER_PORT, version=1))
